﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.Attributes
{
   public enum CheckLoginRoles
    {
        administrators, suppliers, business
    }
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
    public class CheckLoginAttribute : Attribute
    {
        private CheckLoginRoles[] _allowedRoles;
        public CheckLoginRoles[] AllowedRoles
        {
            get { return _allowedRoles; }
        }  
        public CheckLoginAttribute(CheckLoginRoles[] allowedRoles)
        {
            _allowedRoles = allowedRoles;
        }
    }
}
